<?php
/**
 * Created by PhpStorm.
 * User: 10037
 * Date: 2022/6/14
 * Time: 22:12
 */

namespace app\index\model;


use think\Model;

class Essaytable extends Model
{
    protected $pk='id';

    public function selectAllInfo(){
        return $this->where('delete','=',0)->order('id','desc')->select();
    }

    public function selectEssay($id){
        return $this->find($id);
    }
}